// cover some element-ui styles

// 分页
.el-pagination {
  border-top: none;
}

// 导航菜单
.el-menu--horizontal{
  .el-submenu {
    .el-submenu__title{
      height: 50px;
      line-height: 50px;
      .el-submenu__icon-arrow{
        position: relative;
        top: 0;
        right: 0;
        margin: 0;
      }
    }
    &.is-active{
      .el-submenu__title{
        border-bottom: 2px solid;
      }
    }
  }
  .el-menu-item{
    height: 50px;
    line-height: 50px;
  }
}


.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

//cover form sheet in el-dialog
.el-dialog__wrapper{
  overflow: auto;
}

.el-dialog {
  margin-bottom: 3vh;
  min-width: 400px;
  .el-dialog__header {
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #f5f5f5;
    box-shadow:0 25px 15px -15px #fff;
  }
  .el-dialog__body{
    padding-left: 50px;
    padding-right: 50px;
    max-height: calc(100vh - 18vh - 120px); //18vh = el-dialog ( m-t + m-b ); 180px = header height + footer height + el-dialog-body ( p-t + p-b )
    overflow-y: auto;
  }
  .el-dialog__footer {
    position:relative;
    z-index: 1000;
    border-top: 1px solid #f5f5f5;
    box-shadow:0 -25px 15px -15px #fff;
  }
  .el-loading-parent--relative .el-form-item__label::before{
    opacity: .3;
  }
  .el-form-item__label{
    color: #333;
  }
}
.el-form--label-left .el-form-item__label{
  position:relative;
  &::before{
    position: absolute;
    left: -8px;
  }
}
// cover el-input、el-date-editor
.el-input,
.el-date-editor.el-input,
.el-date-editor.el-input__inner{
  width: 200px;
}
.el-date-picker__editor-wrap .el-input{
  width: 100%;
}

.el-dropdown-menu__item {
  white-space: nowrap;
}
